<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <link href="/Public/admin/css/style.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="/Public/admin/js/jquery.js"></script>
</head>

<body>
    <div class="formbody">
        <div class="formtitle"><span>基本信息</span></div>
        <form action="" method="post">
            <ul class="forminfo">
                <?php if(is_array($info)): foreach($info as $key=>$v): ?><li>
                    <label>权限名称</label>
                    <input name="auth_name" placeholder="请输入权限名称" type="text" class="dfinput" value="<?php echo ($v['auth_name']); ?>"/></li>
                <li>
                    <label>父级权限</label>
                    <select name="auth_pid" class="dfinput">
                        <option value="0">作为顶级</option>
                        <?php if(is_array($topAuth)): $i = 0; $__LIST__ = $topAuth;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$top): $mod = ($i % 2 );++$i;?><option value="<?php echo ($top["auth_id"]); ?>"><?php echo ($top["auth_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                    </select>
                    <i></i></li>
                <li>
                    <label>是否显示在菜单</label>
                    <select name="is_menu" class="dfinput">
                        <option value="1" <?php if($v['is_menu'] == 1): ?>selected="selected"<?php endif; ?>>是</option>
                        <option value="0" <?php if($v['is_menu'] == 0): ?>selected="selected"<?php endif; ?>>否</option>
                    </select>
                </li>
                <li>
                    <label>控制器名</label>
                    <input name="auth_controller" placeholder="请输入控制器名称" type="text" class="dfinput" value="<?php echo ($v['auth_controller']); ?>"/>
                </li>

                <li>
                    <label>方法名称</label>
                    <input name="auth_action" placeholder="请输入方法名称" type="text" class="dfinput" value="<?php echo ($v['auth_action']); ?>"/>
                </li>
                    <input type="hidden" name="auth_id" value="<?php echo ($v['auth_id']); ?>">
                <li>
                    <label>&nbsp;</label>
                    <input type="submit" class="btn" value="确认保存">
                </li><?php endforeach; endif; ?>
            </ul>
        </form>
    </div>
</body>
<script type="text/javascript">
</script>
</html>